package com.mtbu.dao;
import java.util.ArrayList;
import java.util.List;

import my.myorm.tool.jdbc.ResultList;
import my.myorm.tool.jdbc.SQLExecutor;
import my.myorm.tool.jdbc.SQLManager;
import my.myorm.tool.orm.TableBeanMap;

import com.mtbu.bean.Project;
import com.mtbu.bean.Step;
import com.mtbu.bean.SysUser;
import com.mtbu.dao.base.SysUserDaoBase;
public final class  SysUserDao extends SysUserDaoBase{
   public   String getSplit(SysUser sysUser) throws Exception{
        return "";
    }
   
   public List<SysUser>  findAll() throws Exception{
	    
	   List<SysUser> res = new ArrayList<SysUser>();
	   
	   String sql="select * from " + getTable() ;
	   
	   SQLExecutor dbconn= SQLManager.getSQLExecutor(super.getDsName(),true);
	   
	   ResultList rs = dbconn.query(sql, false, null);
		for (int i = 0 ; i < rs.size() ; i++) {
			res.add(rs.get(i).get(SysUser.class));
		}
		
	   return res;
   }
}
